package com.scau.ums.service;

import com.scau.ums.model.Suggestion;

import java.util.List;

/**
 * author: 莫伟杰
 * date： 2019/7/22 10:56
 */
public interface CommonSuggest {
    String STATE_VERIFY = "审核";
    String STATE_PASS = "通过";
    String STATE_NOTPASS = "不通过";
    Integer ISTOP_FALSE = 0;
    Integer ISTOP_TURE = 1;

    List<Suggestion> getAllSuggestions();

    boolean newSuggestions(String userID, String suggestionStr);

    List<Suggestion> getUserSuggestions(String userID);

    List<Suggestion> getLatestSuggestions(int startIndex, int pageSize);

    boolean delSuggestion(Suggestion s);
}
